﻿<!DOCTYPE html>
<html>
<head>
    <title>Publisinos - Peça já seu logotipo</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">

    <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
    <script src="../../Scripts/bootstrap.min.js" type="text/javascript"></script>

    <link href="../../Content/bootstrap.min.css" rel="stylesheet" />
    <link href="../../Content/main.css" rel="stylesheet" />
    <link href="../../Content/bootstrap-responsive.min.css" rel="stylesheet" />
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jqueryval")
</head>
<body>
    <script type="text/javascript">

        function Login() {
            alert('login...');

            var mail = $("#inpEmail").val();
            var pass = $("#inpPass").val();

            $.ajax({
                url: 'AccountController/Login',
                type: 'get',
                data: { email: mail, password: pass },
                success: function(){
                    alert('done..');
                    },
              error: function (ex)
              { alert(ex);}
            });
        }    
    
    </script>

    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span
                    class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
                </a><a class="brand" href="index.html">Publisinos</a>
                <div class="nav-collapse collapse">
                    <ul class="nav">
                        <li class="active">@Html.ActionLink("Home", "Index", "Home")</li>
                        <li>@Html.ActionLink("Sobre", "About", "Home")</li>
                        <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
                        <li> @Html.ActionLink("Quero um logotipo", "New", "Logo") </li>
                        <li> @Html.ActionLink("Sou designer", "Requests", "Logo") </li>

                        <li class="dropdown" style="display:none"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Logotipos
                            <b class="caret"></b></a>
                            <ul class="dropdown-menu" >
                                <li> @Html.ActionLink("Quero um logotipo", "New", "Logo") </li>
                                <li> @Html.ActionLink("Sou designer", "Requests", "Logo") </li>

                                <li><a href="requests.html#solicitacoes"></a></li>
                            </ul>
                        </li>
                        <!-- Esta li só aparece se o usuario não estiver logado -->

                        @if (string.IsNullOrEmpty(Framework.Security.User.Name))
                        {
                            <li>@Html.ActionLink("Cadastre-se", "Register", "Account")</li>
                            <li>@Html.ActionLink("Login", "Login", "Account")</li>
                        }
                        else
                        {
                            <li style="font-size:larger; font-weight:bolder; color:Blue;"><a> @Framework.Security.User.Name </a></li>
                        }
                        
                    </ul>                    
                </div>
                <!--/.nav-collapse -->
            </div>
        </div>
    <div class="container">
        @RenderBody()
        <footer>
            <hr />
            <p>&copy; Publisinos 2012 / 2 - Aristeu, Luis Henrique, Renatho, Tiago G. Moura</p>
        </footer>
    </div>
</body>
</html>
